package com.whmskj.xjlhbc.domain;

import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("sc18dDailyClassProductionStatist")
@Schema(name = "产量统计响应参数",description = "产量统计响应参数")
public class Sc18dDailyClassProductionStatist {
    private Integer id;

    @Schema(description = "日期")
    private String statisticsDate;

    private String f38b;

    @Schema(description = "班组")
    private String class554;

    private String personnelOnDuty;

    private String classes;

    private String classes55;

    private String imOnDuty;

    private String onDuty;

    private String classesInTheClassroom;

    private Date varieties;

    private Long fec8;

    private Long speed;

    private String efficiency;

    @Schema(description = "当班产量/日产量")
    private String production;

    @TableField(exist = false)
    @Schema(description = "折标产量")
    private String zbCl = "0.00";

    @Schema(description = "开台数")
    private long kts;

    private Long latitude;

    @TableField(exist = false)
    @Schema(description = "织布工人数")
    private Long numberOfPersonsInAttendance = 0L;

    @Schema(description = "星期几")
    public String getWeek() {
        return DateUtil.dayOfWeekEnum(DateUtil.parseDate(statisticsDate)).toChinese();
    }
}
